home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
music
/
5mods_1.arj
/
SPUD-03.MOD
< prev
next >
Wrap
Text File
|
1994-01-17
|
2KB
|
72 lines
Spud #1 @6455
Sat Jan 15 17:05:37 1994
0R: net34: @2050 (via @1040) [23:42 01/16/94]
0R: net33: @1040 (via @6457) [00:52 01/17/94]
0R: net33: @6457 (via @6464) [05:15 01/16/94]
0R: net33: @6464 (via @6455) [05:15 01/16/94]
0R: net33: @6455 [17:07 01/15/94]
#─────────────────────────────────────────────────────────────────────
Mod Name : SPUD-03.423 Written by : Spud 1@6455 (WWIVnet)
Difficulty: 1 of 10 (Easy!) Date Written: Jan. 15, 1994
File(s) : LILO.C WWIV Version: 4.23
Desc: Changes Language to City,ST in last few callers.
#─────────────────────────────────────────────────────────────────────
DISCLAIMER : You did it, I didn't.
#============================ STEP 1 =================================
Dont forget to do the 'ole pkzip on your source!!!! (Back it up)
#============================ STEP 2 =================================
Open LILO.C and add these lines to : void logon (void)
void logon(void)
{
char s[255],s1[181],s2[81],cyst[18],*ss; //add cyst[18]
int i,i1,dv,win,os2,f;
long len,pos;
mailrec m;
//Code here//
cursub=0;
msgreadlogon=0;
if (strlen(thisuser.city)<=14) { // ADD
sprintf(cyst,"%s, %s",thisuser.city,thisuser.state); // ADD
} else { // ADD
sprintf(cyst,"%-14.14s, %2s",thisuser.city,thisuser.state); // ADD
} // ADD
if ((udir[0].subnum==0) && (udir[1].subnum>0))
//More Code//
sprintf(s,"%-6ld %-23.23s %-18.18s %-5.5s %-5.5s %-14.14s %2d\r\n",
status.callernum1, //^^^^ Change above line ^^^^
nam(&thisuser,usernum),
cur_lang_name, //Delete this line
cyst, //Add this line
times(),
date(),
curspeed,
thisuser.ontoday);
#===========================End of Mod================================
I've made this code so that if the users city exceeds 14 characters
it is truncated so that the state still shows up.
That's it, I hope you enjoy this small mod. Comments and suggestions can
be mailed to me at WWIVnet 1@6455 or IceNET 1@6461
If you enjoy this mod, please let me know, this will give me insentive to
write more mods...
2$pûδ0